package cards;

import java.awt.Image;
import java.awt.image.BufferedImage;

public class ShanDian extends DelayedMagic {
	// IMPORTANT, card class doesn't rewrite paint(). it rewrite IMAGE
	public static BufferedImage image;

	public static void ImageInit(BufferedImage toBinit) {
		image = toBinit;
	}

	@Override
	public BufferedImage getImage() {
		return image;
	}
	public ShanDian(){
		this(0,0);
	}
	public ShanDian(int c, int n) {
		super("ShanDian", c, n, "When source uses this card, this card will be laid in front of the source, it comes into effect next turn: heroes with ShanDian has to PanDin before their turn starts, if the PanDin is between Club 2 and Club 9, the hero will be damaged by 3 hp, otherwise, ShanDian is passed to the next player.");
		// TODO Auto-generated constructor stub
	}
	@Override
	public boolean instanceOf(String superClass) {
		if(super.instanceOf(superClass)){
			return true;
		}
		if(superClass.equalsIgnoreCase("ShanDian")){
			return true;
		}
		return false;
	}
}
